﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Workflow.Dto
{
	public class ReceivedFailDataDto
	{
        public ReceivedFailDataDto()
        {

        }

        public ReceivedFailDataDto(string readFilePath, string errorMessage)
        {
            this.ReadFilePath = readFilePath;
            this.ErrorMessage = errorMessage;
        }

		public string ErrorMessage { get; set; }

		public string ReadFilePath { get; set; }

		public string DBFilePath { get; set; }
	}

    public static class ReceivedFailDataDtoExtentions
    {
        public static void Add(this List<ReceivedFailDataDto> list, string readFilePath, string errorMessage)
        {
            list.Add(new ReceivedFailDataDto(readFilePath, errorMessage));
        }
    }
}
